package threeRegInstructions;

import java.io.FileNotFoundException;
import java.io.IOException;

import main.MIPSSimulator;


public class Nor extends MIPSThreeRegInstruction {
	public Nor(String input) throws FileNotFoundException, IOException {
		super(input);
		myName = "nor";
	}

	@Override
	public void execute() {
		int regTwo = MIPSSimulator.myRegisters.get(myRegisterTwo);
		int regThree = MIPSSimulator.myRegisters.get(myRegisterThree);
		MIPSSimulator.myRegisters.put(myRegisterOne, ~(regTwo | regThree));
	}
}
